/**
 * Light.java
 */
package com;

/**
 * @author Administrator
 * @category  The receiver class
 */
public class Light {
	//0 不亮； 1 亮
	int status=0; 
	public Light()
	{
	}
   //开灯
	public void turnOn()
	{
      this.status = 1;
	}
	//关灯
	public void turnOff()
	{
		this.status = 0;
	}
	//获得等得开关状态
	public int getStatus()
	{
		return this.status;
	}
}
